import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from './base.entity';

/**
 * 福利
 */
@Entity('welfare')
export default class Welfare extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ default: '', comment: '图标' })
  icon: string;

  @Column({ comment: '名称' })
  name: string;

  @Column({ default: 0, comment: '顺序' })
  order: number;

  @Column({ name: 'enable_status', default: 1, comment: '启用状态' })
  enableStatus: number;
}
